package com.heima.api.wemedia;

import com.heima.model.admin.dtos.*;
import com.heima.model.admin.vo.ApArticleVo;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-wemedia")
public interface WemediaFeign {

    @PostMapping("/admin/sensitive/list")
    ResponseResult queryPageSensitive(@RequestBody SensitivePageDto dto);
    @PostMapping("/admin/sensitive/add")
    ResponseResult addSenistove(@RequestBody SensitiveDto dto);
    @PostMapping("/admin/sensitive/modify")
    ResponseResult modifySensitive(@RequestBody SensitiveDto dto);
    @PostMapping("/admin/sensitive/delete")
    ResponseResult deleteSensitive(@RequestBody String id);
    @PostMapping("/admin/channel/list")
    ResponseResult queryPageChannel(@RequestBody ChannelPageDto dto);


    // 查询文章审核列表
    @PostMapping("/api/v1/news/list_vo")
    ResponseResult listNews(@RequestBody NewsAuthDto dto);
    //查询文章详情
    @GetMapping("/api/v1/news/one_vo/{id}")
    ResponseResult getNewsDetail(@PathVariable Integer id);
    //人工审核  文章失败
    @PostMapping("/api/v1/news/auth_fail")
    ResponseResult authFail(@RequestBody NewsAuthDto dto);
    //人工审核 文章成功
    @PostMapping("/api/v1/news/auth_pass")
    ApArticleVo authPass(@RequestBody NewsAuthDto dto) ;


    //人工审核用户通过 开通自媒体端
    @PostMapping("/api/v1/auth/pass")
    ResponseResult addWmUser(ApUser apUser);
    @PostMapping("/admin/channel/add")
    ResponseResult addChannel(@RequestBody ChannelDto dto);
    @PostMapping("/admin/channel/update")
    ResponseResult modifyChannel(@RequestBody ChannelDto dto);
    @PostMapping("/admin/channel/delete")
    ResponseResult deleteChannel(@RequestBody String id);
    @PostMapping("/comment/sensitive/panduan")
    Boolean panduanSenistive(@RequestBody String content);
}
